.class public Les/rd0;
.super Ljava/lang/Object;
.source "Directory.java"


# instance fields
.field a:Lcom/hierynomus/smbj/smb2/a;

.field b:Les/xd0;

.field c:Ljava/lang/String;

.field d:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/AccessMask;",
            ">;"
        }
    .end annotation
.end field

.field e:Ljava/util/EnumSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;",
            ">;"
        }
    .end annotation
.end field

.field f:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;


# direct methods
.method public constructor <init>(Lcom/hierynomus/smbj/smb2/a;Les/xd0;Ljava/lang/String;Ljava/util/EnumSet;Ljava/util/EnumSet;Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/hierynomus/smbj/smb2/a;",
            "Les/xd0;",
            "Ljava/lang/String;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/msdtyp/AccessMask;",
            ">;",
            "Ljava/util/EnumSet<",
            "Lcom/hierynomus/smbj/smb2/SMB2ShareAccess;",
            ">;",
            "Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    .line 3
    iput-object p2, p0, Les/rd0;->b:Les/xd0;

    .line 4
    iput-object p3, p0, Les/rd0;->c:Ljava/lang/String;

    .line 5
    iput-object p4, p0, Les/rd0;->d:Ljava/util/EnumSet;

    .line 6
    iput-object p5, p0, Les/rd0;->e:Ljava/util/EnumSet;

    .line 7
    iput-object p6, p0, Les/rd0;->f:Lcom/hierynomus/smbj/smb2/SMB2CreateDisposition;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/rd0;->b:Les/xd0;

    invoke-virtual {v0}, Les/xd0;->a()Les/qd0;

    move-result-object v0

    invoke-virtual {v0}, Les/qd0;->a()Lcom/hierynomus/smbj/connection/a;

    move-result-object v0

    .line 2
    new-instance v8, Lcom/hierynomus/smbj/smb2/messages/a;

    .line 3
    invoke-virtual {v0}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v2

    iget-object v1, p0, Les/rd0;->b:Les/xd0;

    .line 4
    invoke-virtual {v1}, Les/xd0;->a()Les/qd0;

    move-result-object v1

    invoke-virtual {v1}, Les/qd0;->b()J

    move-result-wide v3

    iget-object v1, p0, Les/rd0;->b:Les/xd0;

    invoke-virtual {v1}, Les/xd0;->b()J

    move-result-wide v5

    iget-object v7, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    move-object v1, v8

    invoke-direct/range {v1 .. v7}, Lcom/hierynomus/smbj/smb2/messages/a;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;)V

    .line 5
    invoke-virtual {v0, v8}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 6
    sget-object v1, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v1}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/smbj/smb2/messages/a;

    .line 7
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v1

    sget-object v2, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-ne v1, v2, :cond_0

    return-void

    .line 8
    :cond_0
    new-instance v1, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Close failed for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v0, v2}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v1
.end method

.method public b()V
    .locals 0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Les/rd0;->a()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public c()Lcom/hierynomus/smbj/smb2/a;
    .locals 1

    .line 1
    iget-object v0, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    return-object v0
.end method

.method public d()Ljava/util/List;
    .locals 15
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Les/ad0;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/hierynomus/smbj/transport/TransportException;,
            Lcom/hierynomus/smbj/common/SMBApiException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Les/rd0;->b:Les/xd0;

    invoke-virtual {v0}, Les/xd0;->a()Les/qd0;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Les/qd0;->a()Lcom/hierynomus/smbj/connection/a;

    move-result-object v1

    .line 3
    new-instance v14, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;

    invoke-virtual {v1}, Lcom/hierynomus/smbj/connection/a;->i()Lcom/hierynomus/smbj/smb2/SMB2Dialect;

    move-result-object v3

    .line 4
    invoke-virtual {v0}, Les/qd0;->b()J

    move-result-wide v4

    iget-object v0, p0, Les/rd0;->b:Les/xd0;

    invoke-virtual {v0}, Les/xd0;->b()J

    move-result-wide v6

    .line 5
    invoke-virtual {p0}, Les/rd0;->c()Lcom/hierynomus/smbj/smb2/a;

    move-result-object v8

    sget-object v9, Lcom/hierynomus/msfscc/FileInformationClass;->FileIdBothDirectoryInformation:Lcom/hierynomus/msfscc/FileInformationClass;

    sget-object v0, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest$SMB2QueryDirectoryFlags;->SMB2_REOPEN:Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest$SMB2QueryDirectoryFlags;

    .line 6
    invoke-static {v0}, Ljava/util/EnumSet;->of(Ljava/lang/Enum;)Ljava/util/EnumSet;

    move-result-object v10

    const-wide/16 v11, 0x0

    const/4 v13, 0x0

    move-object v2, v14

    invoke-direct/range {v2 .. v13}, Lcom/hierynomus/smbj/smb2/messages/SMB2QueryDirectoryRequest;-><init>(Lcom/hierynomus/smbj/smb2/SMB2Dialect;JJLcom/hierynomus/smbj/smb2/a;Lcom/hierynomus/msfscc/FileInformationClass;Ljava/util/EnumSet;JLjava/lang/String;)V

    .line 7
    invoke-virtual {v1, v14}, Lcom/hierynomus/smbj/connection/a;->b(Lcom/hierynomus/smbj/smb2/d;)Ljava/util/concurrent/Future;

    move-result-object v0

    .line 8
    sget-object v1, Lcom/hierynomus/smbj/transport/TransportException;->Wrapper:Les/fd0;

    invoke-static {v0, v1}, Les/gd0;->a(Ljava/util/concurrent/Future;Les/fd0;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hierynomus/smbj/smb2/messages/j;

    .line 9
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v1

    sget-object v2, Lcom/hierynomus/mserref/NtStatus;->STATUS_SUCCESS:Lcom/hierynomus/mserref/NtStatus;

    if-ne v1, v2, :cond_0

    .line 10
    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/messages/j;->c()[B

    move-result-object v0

    .line 11
    :try_start_0
    sget-object v1, Lcom/hierynomus/msfscc/FileInformationClass;->FileIdBothDirectoryInformation:Lcom/hierynomus/msfscc/FileInformationClass;

    invoke-static {v0, v1}, Les/bd0;->a([BLcom/hierynomus/msfscc/FileInformationClass;)Ljava/util/List;

    move-result-object v0
    :try_end_0
    .catch Lcom/hierynomus/protocol/commons/buffer/Buffer$BufferException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    move-exception v0

    .line 12
    new-instance v1, Lcom/hierynomus/smbj/transport/TransportException;

    invoke-direct {v1, v0}, Lcom/hierynomus/smbj/transport/TransportException;-><init>(Ljava/lang/Throwable;)V

    throw v1

    .line 13
    :cond_0
    new-instance v1, Lcom/hierynomus/smbj/common/SMBApiException;

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/d;->a()Lcom/hierynomus/smbj/smb2/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hierynomus/smbj/smb2/c;->f()Lcom/hierynomus/mserref/NtStatus;

    move-result-object v0

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Query directory failed for "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Les/rd0;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v0, v2}, Lcom/hierynomus/smbj/common/SMBApiException;-><init>(Lcom/hierynomus/mserref/NtStatus;Ljava/lang/String;)V

    throw v1
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "File{fileId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/rd0;->a:Lcom/hierynomus/smbj/smb2/a;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, ", fileName=\'"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/rd0;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v1, 0x27

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    const/16 v1, 0x7d

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
